<?php if ($this->goods_ask_list->getTotalItemCount() > 0) { ?>
<div  class="page-content" id="page-content">
    <?php foreach ($this->goods_ask_list as $ask_value) { ?>
    <div class="consult-item">
        <div class="consult-q">
            <div class="head">
                <?php
                if(empty($ask_value['user_avatar'])) {
                    $user_pic = $this->frontwebsite()->getUserIni('default_avatar');
                } else {
                    $user_pic = $ask_value['user_avatar'];
                }
                ?>
                <img  src="<?php echo $this->basePath($user_pic); ?>" style="width:80px;height:80px;">
                <strong><?php echo $this->frontwebsite()->userNameHide($ask_value['ask_writer']); ?></strong>
                <i class="arrow"><b></b></i>
            </div>
            <div class="consult-content"><?php echo $this->escapeHtml($ask_value['ask_content']); ?>
                <p class="tr"><?php echo date("Y-m-d H:i:s", $ask_value['ask_time']); ?></p>
            </div>
        </div>
        <?php if($ask_value['reply_ask_content'] != '') { ?>
        <div class="consult-a" >
            <div class="head">
                <img src="<?php echo $this->basePath('public/css/dbblack/img/no-img.png'); ?>" width="80" height="80">
                <strong><?php echo $this->translate('店主'); ?></strong>
                <i class="arrow"><b></b></i>
            </div>
            <div class="consult-content"><?php echo $this->escapeHtml($ask_value['reply_ask_content']); ?>
                <p class="tl"><?php echo date("Y-m-d H:i:s", $ask_value['reply_ask_time']); ?></p>
            </div>
        </div>
        <?php } ?>
    </div>
    <?php } ?>
</div>
<div class="page-nav"><?php echo ( count($this->goods_ask_list) > 0 ) ? $this->paginationControl($this->goods_ask_list, 'Sliding', 'site/ajax-dbpage',array('page_url'=>$this->url('frontgoods/default',array('action'=>'goodsAsk','goods_id'=>$this->goods_id,'class_id'=>$this->class_id)), 'ajaxFunction'=>'ask_ajax_list')) : ""; ?></div>
<?php } else { ?>
<div><strong><?php echo $this->translate('该商品暂无咨询信息！'); ?></strong></div>
<?php } ?>
